package zhihui.mobile.presenter.address;

import java.util.List;

import zhihui.mobile.bean.address.CommunityInfo;
import zhihui.mobile.bean.address.login.Area;
import zhihui.mobile.bean.address.login.City;
import zhihui.mobile.bean.address.login.Province;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/7/5 0005.
 */

public interface IAddressContract
{
    interface IAddressView extends IView
    {
        void showAreaDialog(Province curProvince, int proPosition, City curCity, int cityPosition , Area curArea, int areaPosition);

        void refreshCity(List<City> list);

        void refreshArea(List<Area> list);

        void closeDialog(String areaName);

        void refreshCommunityList(List<CommunityInfo> list);
    }

    interface IAddressPresenter extends IPresenter
    {
        void initArea();

        List<Province> getProvinceList();

        void updateCity(Province province, int position);

        void updateArea(City city, int position);

        void getCommunityList(Area area, int position);

        void clear();

        List<CommunityInfo> getCurComminityList();

        void searchCommunity(String text);
    }
}
